<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider' => $dataGameVersion,    
    'columns' => array(
        array(
            'header'=> 'Phiên bản',
            'type' => 'raw',
            'value'=>function($data, $row){
                return $data->core_version.".".$data->build_version.".".$data->code_revision;
            }
        ),        
        array(
            'class' => 'CButtonColumn',
            'template' => '{update}{delete}',
            'buttons'=>array
            (                
                'update' => array
                (
                    'label'=>'Update',
                    'url'=>'Yii::app()->createUrl("admin/game/updateVersion", array("id"=>$data->id))',
                ),
                'delete'=> array(
                    'label'=>'Delete',
                    'url'=>'Yii::app()->createUrl("admin/game/deleteVersion", array("id"=>$data->id, "game_id"=>$data->gamePlatform->game_id))',
                )
            ),                            
        ),
    ),
));
?>